package org.javaboy;

public class Demo01 {
    public static void main(String[] args) {
        ICalculator iCalculator = new ICalculator() {
            @Override
            public int add(int a, int b) {
                return a + b;
            }
        };
        iCalculator.add(1, 2);
        ICalculator iCalculator2 = (int a, int b) -> {
            System.out.println("=====");
            return a + b;
        };
    }
}
